package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerFeedbackMapper;
import com.ruoyi.passenger.domain.TbPassengerFeedback;
import com.ruoyi.passenger.service.ITbPassengerFeedbackService;

/**
 * 用户反馈信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbPassengerFeedbackServiceImpl implements ITbPassengerFeedbackService 
{
    @Autowired
    private TbPassengerFeedbackMapper tbPassengerFeedbackMapper;

    /**
     * 查询用户反馈信息
     * 
     * @param id 用户反馈信息主键
     * @return 用户反馈信息
     */
    @Override
    public TbPassengerFeedback selectTbPassengerFeedbackById(Long id)
    {
        return tbPassengerFeedbackMapper.selectTbPassengerFeedbackById(id);
    }

    /**
     * 查询用户反馈信息列表
     * 
     * @param tbPassengerFeedback 用户反馈信息
     * @return 用户反馈信息
     */
    @Override
    public List<TbPassengerFeedback> selectTbPassengerFeedbackList(TbPassengerFeedback tbPassengerFeedback)
    {
        return tbPassengerFeedbackMapper.selectTbPassengerFeedbackList(tbPassengerFeedback);
    }

    /**
     * 新增用户反馈信息
     * 
     * @param tbPassengerFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int insertTbPassengerFeedback(TbPassengerFeedback tbPassengerFeedback)
    {
        return tbPassengerFeedbackMapper.insertTbPassengerFeedback(tbPassengerFeedback);
    }

    /**
     * 修改用户反馈信息
     * 
     * @param tbPassengerFeedback 用户反馈信息
     * @return 结果
     */
    @Override
    public int updateTbPassengerFeedback(TbPassengerFeedback tbPassengerFeedback)
    {
        return tbPassengerFeedbackMapper.updateTbPassengerFeedback(tbPassengerFeedback);
    }

    /**
     * 批量删除用户反馈信息
     * 
     * @param ids 需要删除的用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerFeedbackByIds(Long[] ids)
    {
        return tbPassengerFeedbackMapper.deleteTbPassengerFeedbackByIds(ids);
    }

    /**
     * 删除用户反馈信息信息
     * 
     * @param id 用户反馈信息主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerFeedbackById(Long id)
    {
        return tbPassengerFeedbackMapper.deleteTbPassengerFeedbackById(id);
    }
}
